﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.Data.SqlClient;
using System.Xml.Linq;
using AjaxControlToolkit;
using LibTracker;
using posttracker.Classes;

namespace posttracker
{

    public class Record
    {
        public DateTime DateTime { get; set; }
        public string Event { get; set; }
        public string PostService { get; set; }
    }

    public class TrackNumbers
    {
        public string TrackNumber { get; set; }
        public int UserId { get; set; }
        public IList<Record> ListRecords { get; set; }
    }

    public partial class MDefault : System.Web.UI.Page
    {

        private IList<Country> _lstCountry;

        protected void Page_Load(object sender, EventArgs e)
        {

            //User user = new User() { Password = "1234", Email = "Jam@tut.by" };
            //user.SetUserName("Jam");

            //Registration reg = new Registration();
            //reg.DeleteUser("Jam@tut.by", false);

            WebApiMembershipProvider mem = new WebApiMembershipProvider();
            //MembershipCreateStatus createStatus;
            //User user = new User(){ Email = "Jamy@tut.by", Id = 21 };
            //user.SetUserName("Jamy");
            //int total;
            mem.UnlockUser("Jamy");
            //var res = (int)reg.Register(ref user);
            //int i = 5;
            //User.Identity.IsAuthenticated
            
            _lstCountry = Loader.GetCountry();

            ddlCountry.DataSource = _lstCountry.Select(x => x.Name);
            ddlCountry.DataBind();

            //ddlCountry2.DataSource = _lstCountry.Select(x => x.Name);
            //ddlCountry2.DataBind();
            

        }

 
    }
}
